package me.firstapp.repository.shop;

import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.shop.ProductSkuRelation;
import me.firstapp.repository.base.EntityRepository;

public interface ProductSkuRelationRepository extends EntityRepository<ProductSkuRelation> {

	ProductSkuRelation findProductSkuRelationByProductIdAndSkuNameAndValue(Long productId, String skuName1,
			String skuValue1, String skuName2, String skuValue2, Long apiClientId);

	Page<ProductSkuRelation> findProductSkuRelationPage(Integer pageNo, Integer pageSize,
			Map<String, Object> searchParams, String sortParam, String sortType, Long apiClientId);
	
	List<ProductSkuRelation> findProductSkuRelationsByProductId(Long productId, Integer isDefault, Long apiClientId);
	
	ProductSkuRelation findById(Long id, Long apiClientId);

}
